package com.example.hospital.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.example.hospital.pojo.AdminUser;
import com.example.hospital.pojo.RespBean;
import com.example.hospital.pojo.Role;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

public interface IAdminUserService extends IService<AdminUser> {
    //登录之后返回token
    RespBean login(String username, String password,String code ,HttpServletRequest request);
    //根据用户名获取用户
    AdminUser getAdminByUserName(String username);
    //根据用户获取角色权限
    List<Role> getRoles(Integer adminId);
}
